package kr.saeildamil.androidstudy.ch07;

import kr.saeildamil.androiddforstudy.R;
import kr.saeildamil.androidstudy.exam.Beep;
import kr.saeildamil.androidstudy.exam.DrawPath;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch07Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch07_main);
	}
	
	public void mOnClick(View v){
		switch (v.getId()) {
		case R.id.ch07_btn01:
			startActivity(new Intent(this, CustomView.class));
			break;
		case R.id.ch07_btn02:
			startActivity(new Intent(this, DrawBitmapEX.class));
			break;
		case R.id.ch07_btn03:
			startActivity(new Intent(this, ToastLayoutEX.class));
			break;
		case R.id.ch07_btn04:
			startActivity(new Intent(this, Vibrate.class));
			break;
		case R.id.ch07_btn05:
			startActivity(new Intent(this, DrawPath.class));
			break;
		case R.id.ch07_btn06:
			startActivity(new Intent(this, Beep.class));
			break;
		}
	}
}
